package com.xinzhitong.www.mapper;

import org.springframework.stereotype.Repository;
import com.xinzhitong.www.pojo.Trade;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 购买表相关操作
 *
 * @author 吴展鹏
 */
@Repository
public interface ClickMapper {

    @Insert("insert into user_comment_company(username, company_id, text) values(#{username}, #{companyId}, #{text})")
    Integer insertUserCommentCompany(
            @Param("username") String username,
            @Param("companyId") Integer companyId,
            @Param("text") String text
    );

    @Insert("insert into user_click_train_class_time (username, train_class_time_id) values(#{username}, #{trainClassID})")
    void insertUserClickTrainClassTime(
            @Param("username") String username,
            @Param("trainClassID") Integer trainClassID
    );

    @Insert("insert into  user_click_post_or_consign (username, post_id) values(#{username}., #{consignID})")
    void insertUserClickConsign(
            @Param("username")String username,
            @Param("consignID")Integer consignId
    ) ;

    @Insert("insert into  user_click_post_or_consign (username, post_id) values(#{username}., #{postId})")
    void insertUserClickPost(
            @Param("username")String username,
            @Param("postId")Integer postId
    ) ;
}
